package com.aishang.shopback_2005.service.impl;

import com.aishang.shopback_2005.dao.CategoryMapper;
import com.aishang.shopback_2005.po.Category;
import com.aishang.shopback_2005.po.Categorysecond;
import com.aishang.shopback_2005.service.CategoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 劉
 */
@Service
public class CategoryServiceImpl implements CategoryService {
    @Resource
    private CategoryMapper categoryMapper;
    @Override
    public List<Category> getCategories() {
        return categoryMapper.getCategories();
    }

    @Override
    public List<Categorysecond> getCategortSeconds(Integer cid) {
        return categoryMapper.getCategortSeconds(cid);
    }
}
